import {Pipe, PipeTransform} from "@angular/core";
/**
 * Created by Administrator on 2017/3/28.
 */
@Pipe({name: 'numPer'})
export class NumPerPipe implements PipeTransform {
    transform(value: any): string {
        if(value==undefined||value==""){
            return "-"
        }else{
            return (value*100).toFixed(2)+"%"
        }
    }
}